home *** CD-ROM | disk | FTP | other *** search
- unit bigarray;
-
-
-
- interface
-
-
-
-
-
- type atype=array[1..64000] of char;
- aptr=^atype;
- BAtype=array[1..10] of aptr;
- { a bigarray is an array of 10 pointers. each pointer points to a
- dynamically allocated array of 64000 bytes. the get and set routines
- allow you to access the bigarray like a normal array. bigarray index
- values are automatically translated into an array# and array index#.
- NOTE: the size of a BAtype is limited only by installed RAM. This
- implementation is hard coded to a max array size of 640000 bytes per
- array. }
-
-
-
-
-
-
-
- function BAsize(a:batype):longint; { returns current size of array a }
- function BAget(a:batype; i:longint):char; { returns value of a[i] }
- procedure BAset(var a:batype; i:longint; c:char); { sets a[i]:=c }
- procedure BAinit(var a:batype; size:longint);
- { allocates memory for array a. size is # of elements in array.
- calulates # of atypes needed to hold the array and alloactes
- that many atypes. sets the pointers in the batype to point
- to the allocated memory. }
-
- procedure BAdispose(var a:batype);
- { deallocates memory for array a }
-
-
-
- implementation
-
-
-